package tech.yixiyun.framework.kuafu.component.register;


import tech.yixiyun.framework.kuafu.controller.interceptor.IControllerInterceptor;
import tech.yixiyun.framework.kuafu.controller.interceptor.InterceptorContext;

/**
 * ControllerInterceptor类解析器
 */
public class InterceptorComponentRegistrar implements IComponentRegistrar {
    @Override
    public void register(Class clazz) {
        if (IControllerInterceptor.class.isAssignableFrom(clazz)) {
            InterceptorContext.register(clazz);
        }
    }
}
